MYSQLC_SRCS		:= mysql_c_test.c
MYSQLC_TARGET	:= $(basename $(MYSQLC_SRCS))
MYSQLC_CFLAGS	:= -Werror -Wall
MYSQLC_LFLAGS	:= -lmysqlclient

TARGET		: $(MYSQLC_TARGET)

$(MYSQLC_TARGET): $(MYSQLC_SRCS)
	$(CC) $(MYSQLC_CFLAGS) $(MYSQLC_LFLAGS) $(MYSQLC_SRCS) -o $@

clean:
	rm -rf *.o $(MYSQLC_TARGET)

.PHONY:
	clean $(TARGET)

